﻿namespace dPet.Infrastructure.EntityFramework.ModelConfigurations
{
	using dPet.Domain.Models;
	using Hangerd.EntityFramework;

	public class HospitalConfig : EntityTypeConfigBase<Hospital>
	{
		public HospitalConfig()
		{
			Property(h => h.Name)
				.IsRequired()
				.HasMaxLength(20);

			Property(h => h.Address)
				.HasMaxLength(100);

			Property(h => h.PhoneNumber)
				.HasMaxLength(20);

			Property(h => h.FaxNumber)
				.HasMaxLength(20);
		}
	}
}
